#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<stdlib.h>
void init(int a[], int sz)
{
	for (int i = 0; i < sz; i++)
	{
		a[i] = 0;
	}
}
void print(int a[], int sz)
{
	for (int i = 0; i<sz; i++)
	{
		printf("%d ", a[i]);
	}
	printf("\n");
}
void reverse(int a[], int right)
{
	int left = 0;
	for (left = 0; left < right; left++)
	{
		int num = a[left];
		a[left] = a[right];
		a[right] = num;
		right--;
	}
}
int main()
{
	int arr[] = { 1,2,3,4,5,6,7,8,9,10,11};
	int sz = sizeof(arr) / sizeof(arr[0]);
	print(arr, sz);
	int right = sz - 1;
	reverse(arr, right);
	print(arr, sz);
	init(arr,sz);
	print(arr,sz);
	return 0;
}

